*** Settings ***
Documentation       通过ipmi接口测试openUBMC的版本信息
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_BMC_MC_Info

*** Variables ***
${input}                    mc info
${expected_rc}              ${0}
${expected_output}          Device ID


*** Test Cases ***
Get IPMI BMC MC Info
    [Documentation]    带认证的IPMI的BMC版本信息
    [Tags]  Get_BMC_MC_Info_Via_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    ${type}=    Evaluate    type($output).__name__
    Log    验证输出类型: ${type}    level=INFO
    Should Contain    ${output}    ${expected_output}


